# coding:utf-8
import os

DEBUG = True
SECRET_KEY = os.urandom(24)

HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'news'
USERNAME = 'root'
PASSWORD = 'root'
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOST, PORT, DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI

SQLALCHEMY_TRACK_MODIFICATIONS = False

# pagination
NEWS_PER_PAGE = 8
LOG_PER_PAGE = 15
USER_PER_PAGE = 10
FLASK_TEL = '13197911586'
